package top.itczw;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class SpringbootDockerDemoApplication {

    private Logger logger = LoggerFactory.getLogger(SpringbootDockerDemoApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDockerDemoApplication.class, args);
    }
    @RequestMapping("/")
    public String home() {
        logger.info("Hello spring boot Docker World(docker push 演示 jenkins自动化docker构建3.1.11)");
        return "Hello spring boot Docker World(docker push 演示3.x)";
    }

}
